package com.cis.teacher.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/course")
public class CourseInformation {

    private String prefix = "/course";

    @GetMapping("/information")
    public String information(){
        return prefix + "/information";
    }

    @GetMapping("/student/{studentId}")
    public String student(@PathVariable String studentId, ModelMap mmap){
        mmap.put("studentId", studentId);
        System.out.println("studentId = " + studentId);
        return prefix + "/student";
    }
}
